package org.jdcenter.rmi.impl;

import org.jdcenter.rmi.abs.Result;

public class InvokeResult implements Result{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2968670198489054955L;
	public static final Result TRUE = new InvokeResult(Boolean.TRUE);
	public static final Result FALSE = new InvokeResult(Boolean.FALSE);
	
	private Boolean result;
	
	private Object obj;
	
	public InvokeResult(Boolean bool){
		this.result = bool;
	}
	
	public InvokeResult(Object obj){
		this.obj = obj;
		this.result = true;
	}

	@Override
	public Boolean getResult() {
		// TODO Auto-generated method stub
		return result;
	}

	@Override
	public void setReslut(Boolean result) {
		// TODO Auto-generated method stub
		this.result = result;
	}

	@Override
	public Object getResultObj() {
		// TODO Auto-generated method stub
		return obj;
	}

	@Override
	public void setResultObj(Object obj) {
		// TODO Auto-generated method stub
		this.obj = obj;
	}

}
